//  -----------------------------------------------------
//  Project RenderIt
//  Contact : cyn2230@corp.netease.com
//  Author : chenyi
//  -----------------------------------------------------
/// @file
/// @path
/// @data 2016/07/25
/// @brief
#pragma once
#include <ctime>
#include < windows.h>
#include <stdio.h>

namespace renderit
{
	class MessiahGuid
	{
	public:
		
		static char * generate_guid()
		{
			static char buf[64] = { 0 };
			GUID guid;
			
			if (CoCreateGuid(&guid)) {
			//	kLog("[Error] Gen guid failed!");
				return nullptr;
			}
			sprintf_s(buf, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", guid.Data1, guid.Data2, guid.Data3,
				guid.Data4[0], guid.Data4[1], guid.Data4[2],
				guid.Data4[3], guid.Data4[4], guid.Data4[5],
				guid.Data4[6], guid.Data4[7]);
			return buf;
		}

	public:
		static unsigned int one;
		static unsigned int two;
		static unsigned int three;
		static unsigned int four;
		static const char* none;
	};
}